package com.motong.gongdan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "device_produce_log")
@Data
@Accessors(chain = true)
@TableName(value = "device_produce_log")
public class DeviceProduceLog extends PublicPo implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 设备id
     */
    @TableField(value = "device_id")
    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    /**
     * 生产数量
     */
    @TableField(value = "`count`")
    @ApiModelProperty(value = "生产数量")
    private Long count;

    /**
     * 真实数量
     */
    @TableField(value = "real_count")
    @ApiModelProperty(value = "真实数量")
    private Long realCount;

    /**
     * 生产时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "生产时间")
    private Date createTime;

    /**
     * 时间间隔
     */
    @TableField(value = "time_interval")
    @ApiModelProperty(value = "时间间隔")
    private Long timeInterval;

    /**
     * 任务id
     */
    @TableField(value = "mission_id")
    @ApiModelProperty(value = "任务id")
    private Integer missionId;

    private static final long serialVersionUID = 1L;
}